<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<h:body>
	<ui:composition>
		<div class="user">
			<table width="100%">
				<tr>
					<td width="10%"><img
						src="#{request.contextPath}/images/teknei_chico.png" alt=""
						style="float: left;" /></td>
					<td width="10%" style="color: rgb(24, 24, 156); font-weight: bold;"
						align="left"><h:outputText value="#{msg.acabus}" /> </td>
					<td width="20%" align="left"><span class="username"> <h:outputText value="#{msg.welcome}" /> 
							<h:outputText value="#{login_controller.username}" /> </span></td>
					<td width="60%" align="right"><span class="closesession">
							<p:commandLink value="#{msg.closeSession}" action="#{login_controller.logout}"/>
					</span></td>
				</tr>
			</table>
			<!-- end #top -->
		</div>
		<p:spacer width="100%" height="5px" />
		<div id="header">
			<h:form id="formHeader">
				<ul>
					<ui:repeat var="nav" value="#{nav_controller.listParents}">
						<li
							id="#{nav_controller.selected.idParent == nav.idParent ? 'selected' : ''}"><p:commandLink
								value="#{nav.text}" action="#{nav_controller.navigate}">
								<f:setPropertyActionListener target="#{nav_controller.selected}"
									value="#{nav}" />
							</p:commandLink></li>
					</ui:repeat>
				</ul>
			</h:form>
		</div>
		<div id="content">
			<h:form>
				<p:outputPanel rendered="#{nav_controller.childsPresent}">
					<ui:repeat var="child" value="#{nav_controller.listChilds}">
						<p:commandLink value="#{child.text}"
							style="color:white; text-decoration: none"
							action="#{nav_controller.subNavigate}">
							<f:setPropertyActionListener value="#{child}"
								target="#{nav_controller.child}"></f:setPropertyActionListener>
						</p:commandLink>
						<p:spacer width="5"></p:spacer> | 
				</ui:repeat>
				</p:outputPanel>
			</h:form>
		</div>
	</ui:composition>
</h:body>
</html>